package com.example.utils;


import com.example.business.entity.SysUser;
import com.example.business.service.SysUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author ZhangPeng
 * @Description //todo 用户工具类
 * @date
 * @updateBy
 * @other
 **/

public class RequestUtils {

    @Autowired
    private SysUserService sysUserService;

    private static Logger logger = LoggerFactory.getLogger(RequestUtils.class);

    /**
     * @param
     * @return com.ssr.master.modules.entity.SysUser
     * @Description //todo 获取当前登录的用户，若用户未登录，则返回未登录 json
     * @author ZhangPeng
     * @date 2020/6/20 22:05
     * @other
     **/
    public static SysUser currentLoginUser() {
        return UserUtil.getUser();
    }
}
